/**
 * 
 */
package com.lgf.extdemo.service;
import java.util.List;

import com.lgf.extdemo.dao.DemoDataDao;
import com.lgf.extdemo.pojo.Demo;
import com.lgf.extdemo.pojo.Tree;

/**
 * @author rj
 *
 */
public class DemoDataService {
	DemoDataDao dao = new DemoDataDao();
	TreeService treeService = new TreeService();
	/**
	 * @author ; rj
	 * @Description : TODO
	 * @CreateDate ; Sep 7, 2012 11:17:58 AM
	 * @lastModified ; Sep 7, 2012 11:17:58 AM
	 * @version ; 1.0
	 * @param resourceid
	 * @param id
	 * @param deep
	 * @return
	 */
	   
	public String getTreeDate(int resourceid, int id, int deep) {
		List<Demo> demoList = dao.getDemoById(resourceid);
		String str = treeService.putIntoTree(demoList,id,deep);
		return str;
	}
}
